<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="url" uri="/WEB-INF/tld/stockDetailUrlTag.tld"%>  

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
<!--     <meta http-equiv="refresh" content="30">  --> 
    <meta name="description" content="">
    <meta name="author" content="">
	<c:set var="ctx" value="${pageContext.request.contextPath}"/>
    <title>稳定上涨模型</title>

    <!-- Bootstrap Core CSS -->
    <link href="${ctx}/style/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="${ctx}/style/bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">

    <!-- DataTables CSS -->
    <link href="${ctx}/style/bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" rel="stylesheet">

    <!-- DataTables Responsive CSS -->
    <link href="${ctx}/style/bower_components/datatables-responsive/css/dataTables.responsive.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="${ctx}/style/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="${ctx}/style/bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

    <div id="wrapper">

      <%@ include file="../nav.jsp" %>
        

        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">稳定上涨模型</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            DataTables Advanced Tables
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <div class="dataTable_wrapper">
                                <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                    <thead>
                                        <tr>
                                            <th title="股票名称">股票名称</th>
                                            <th title="最近一次连续下降的天数">连续下降天数</th>
                                            <th title="当前价格">当前价格</th>
                                            <th title="当前价格相对开盘价上涨幅度">相对开盘上涨</th>
                                            <th title="上涨空间">上涨空间</th>
                                            <th title="最近价格高点">最近最高</th>
                                            <th title="历史最高价">历史最高</th>
                                            <th title="最近60天历史最低价格">历史最低</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <c:forEach var="model" items="${probablyIncreaseModelList}">
                                        <tr class="odd gradeX" <c:if test="${model.incre > 0}">style="color:#ff0000"  </c:if>   <c:if test="${model.incre <= 0}"> style="color:#008000" </c:if>>
                                            <td title="股票代码${model.ticker}"><a href=<url:stockDetailUrl ticker="${model.ticker}"  exchangecd="${model.exchangecd}"/> target="_blank"> ${model.secShortName} </a></td>
                                            <td title="今日开盘价 最近一次连续下降的天数"> ${model.lastDecreDays}</td>
                                            <td title="当前价格"> ${model.priceNow}</td>
                                            <td title="当前价格相对开盘价上涨幅度"><fmt:formatNumber value="${model.incre * 100}"   pattern="0.00" maxFractionDigits="2" />% </td>
                                            <td title="上涨空间"><fmt:formatNumber value="${model.proIncreaseSpace * 100}"   pattern="0.00" maxFractionDigits="2" />% </td>
                                            <td title="最近价格高点"> ${model.recentHighestPrice}</td>
                                            <td title="历史最高价"> ${model.historyHighestPrice}</td>
                                            <td title="历史最低价"> ${model.historyLowestPrice}</td>
                                            <td title="年上涨"><a href="javascript:void(0)" onClick="addUserStock('${model.ticker}','${model.exchangecd}')">关注</a></td>
                                            
                                        </tr>
                                        </c:forEach>
                                        
                                    </tbody>
                                </table>
                            </div>
                           
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
           
        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="${ctx}/style/bower_components/jquery/dist/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="${ctx}/style/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="${ctx}/style/bower_components/metisMenu/dist/metisMenu.min.js"></script>

    <!-- DataTables JavaScript -->
    <script src="${ctx}/style/bower_components/datatables/media/js/jquery.dataTables.min.js"></script>
    <script src="${ctx}/style/bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="${ctx}/style/dist/js/sb-admin-2.js"></script>
 
 	<script src="${ctx}/style/js/refresh-index.js"></script>
 
    <!-- Page-Level Demo Scripts - Tables - Use for reference -->
    <script>
    $(document).ready(function() {
        $('#dataTables-example').DataTable({
                responsive: true,
                "order":[[2,"desc"],[3,"desc"],[4,"desc"]]
        });
    });
    </script>

</body>

</html>
